import request from '@/utils/request'

const baseUrl = '/eduservice/subject/'

export function getSubjectList(){
  //1 课程分类列表
    return request({
      url: baseUrl + 'getAllSubject',
      method: 'get'
    })
}

export function deleteSubjectById(id) {
  return request({
    url: baseUrl + 'deleteSubjectById/' + id,
    method: 'get',
  })
}

export function updateSubject(subject) {
  return request({
    url: baseUrl + 'updateSubject',
    method: 'post',
    data: subject
  })
}

export function createSubject(subject) {
  return request({
    url: baseUrl + 'createSubject',
    method: 'post',
    data: subject
  })
}
